package com.cheng.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
public class SignListener implements ApplicationListener<SignEvent> {

    @Override
    public void onApplicationEvent(SignEvent event) {
        String message = event.getMessage();
        System.out.println("sign listener 监听到了消息:" + message);
    }

}
